import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:klfz_flutter/config/RouteConfig.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'http/http_utils.dart';

void main() {
  HttpUtils.init(baseUrl: "http://localhost:8080/dlam");
  // HttpUtils.init(baseUrl: "http://moneylee.top/dlam");
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: Size(360, 690),
      builder: () => GetMaterialApp(
          title: 'Flutter Demo',
          theme: ThemeData(
            primarySwatch: Colors.blue,
          ),
          initialRoute: RouteConfig.main,
          getPages: RouteConfig.getPages
      )
    );
  }
}

